package com.springboot.listener;

import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;

import java.util.Arrays;

/**
 * @author wtcode
 * @Description 当项目启动后执行
 * @date 2025/1/4 - 16:57
 */
@Component
public class MyCommandLineRunner implements CommandLineRunner {
    @Override
    public void run(String... args) throws Exception {
        System.out.println("commandLine.run");
        System.out.println(Arrays.asList(args));
    }
}
